<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/2/27
  Time: 20:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>角色管理</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css">
    <script src="${pageContext.request.contextPath}/layui/layui.js" type="text/javascript"></script>
</head>
<body>
    <!--展示表格-->
    <table id="myTable"></table>
    <script>
        layui.use('table',function () {
            var table = layui.table;
            var $ = layui.$;
            //渲染表格
            table.render({
                elem:'#myTable',
                url:'${pageContext.request.contextPath}/cmfzRole/select',
                page:true,
                limit:3,
                limits:[3,4,5],
                cols:[[
                    {field:'roleId',title:'角色编号',width:100,sort:true},
                    {field:'roleName',title:'角色名称',width:100,sort:true},
                ]]
            })

        })
    </script>
</body>
</html>
